﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
   public  class Interview
    {
        /// <summary>
        /// 数据唯一标识符
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ID { get; set; } = Guid.NewGuid();


        /// <summary>
        /// 姓
        /// </summary>
        [Required]
        [StringLength(20)]
        public String? FirstName { get; set; }

        /// <summary>
        /// 名
        /// </summary>
        [Required]
        [StringLength(30)]
        public String? LastName { get; set; }

        /// <summary>
        /// 居住地址
        /// </summary>
        [Required]
        [StringLength(150)]
        public String? Address { get; set; }


        /// <summary>
        /// enum:
        ///0：领导
        ///1：党务人员
        ///2：雇员
        /// </summary>
        [Required]
        public int Postion { get; set; }

        /// <summary>
        /// 年龄
        /// </summary>
        [Required]
        public int Age { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [Required]
        public bool Gender { get; set; }

        /// <summary>
        /// 出生日期
        /// </summary>
        [Required]
        public DateTime BirthDate { get; set; }

        /// <summary>
        /// 18位身份证号码
        /// </summary>
        [Required]
        [StringLength(20)]
        public String? IDNumber { get; set; }


        /// <summary>
        /// 走访时间
        /// </summary>
        [Required]
        public DateTime Visittime { get; set; }
    }
}
